#include<bits/stdc++.h>
using namespace std;
int factorial(int n){
	//return 1;
	return n<=1?1:factorial(n-1)*n;
}
int binormial(int n,int r){
	return factorial(n)/factorial(n-r)/factorial(r);
}
int main() {
	int n=10;
	for(int i=0;i<=n;i++){
		for(int j=0;j<=i;j++){
			cout<<binormial(i,j)<<" ";
		}
		cout<<endl;
	}
	return 0;
}
